<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<jsp:useBean id="now"  class="java.util.Date" />
<div class="page">
	<div class="pageContent">
		<form id="smstemplateInfo" method="post" action="${ctx }/crm/smstemplate!save.action" class="pageForm required-validate" onsubmit="return validateCallback(this,navTabAjaxDone);">
			<input type="hidden" name="id" value="${id }"/>
			<input type="hidden" name="navTabId" value="smstemplateList"/>
			<div class="pageFormContent" layoutH="56">
				<div>
				<p>
					<label>模板分类：</label>
					<input name="category" id="category"   type="hidden" size="30" value="${category}" />
					<input name="categoryName" id="categoryName"  class="required" type="text" size="30" value="${sysClass.name}" />
					<a class="inputButton" href="${ctx }/common/sys-type-ui!getSysClassUL.action?code=SMS_TEMPLATE_TYPE&leafNode=true&idInput=category&nameInput=categoryName&form=smstemplateInfo&dlgID=templateDlgtype" target="dialog" rel="templateDlgtype">模板类型</a>
				</p>
				</div>
				<div>							
				<p>
					<label>模板名称：</label>
					<input name="name"  class="required" type="text" size="30" value="${name}" />
				</p>	
				</div>
				
				<p>
				<div>
					<label>模板内容：</label>
					<textarea rows="10" cols="50" name="template">${template}</textarea>
				</div>
				</p>	
				
				<div>				
				<p>
					<label>模板说明：</label>
					姓名：\${name} &nbsp;&nbsp;先生/小姐：\${mrms}
				</p>
				</div>
				<div>		
				<p>
					<label>模板创建者：</label>
					<s:if test="userid!=null">
					<input name="userid" class="required" type="hidden" size="30" value="${userid }" />
					<input name="username" class="required" type="text" size="30" value="${username }" />			
					</s:if>
					<s:else>
					<input name="userid" class="required" type="hidden" size="30" value="${currUser.id }" />
					<input name="username" class="required" type="text" size="30" value="${currUser.name }" />	
					</s:else>
				</p>
				</div>
				<div>		
				<p>
					<label>模板更新时间：</label>
					<input name="updatedate"  readonly="readonly" type="text" size="30" value="<s:date name="updatedate" format="yyyy-MM-dd HH:mm"  />" />			
				</p>
				</div>	
			</div>
			<div class="formBar">
				<ul>
					<!--<li><a class="buttonActive" href="#"><span>保存</span></a></li>-->
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
					<li>
						<div class="button"><div class="buttonContent"><button type="Button" onclick="navTab.closeCurrentTab()">取消</button></div></div>
					</li>
				</ul>
			</div>
		</form>
	</div>
</div>